package stemming;

/**
 * @UNUSED This class was created for testing purpose.<br>
 * The {@link SnowBallStemmer} is more powerfull than the {@link Shortener}<br>
 * <br>
 * The {@link Shortener} is used to shorten
 * a word to a maximum of 7 characters.
 */
public class Shortener
{
  /**
   * Truncate a word to 7 characters.
   *
   * @param word the word
   * @return the string
   */
  public static String shortenAWord(String word)
  {
    String result = word;
    if(result.length() > 7)
    {
      result = result.substring(0, 7);
    }
    return result;
  }
}
